# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'preferences.ui'
#
# Created: Tue Mar 10 03:39:45 2009
#      by: PyQt4 UI code generator 4.4.4
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

class Ui_PreferencesWindow(object):
    def setupUi(self, PreferencesWindow):
        PreferencesWindow.setObjectName("PreferencesWindow")
        PreferencesWindow.resize(520, 301)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap("../data/tubemaster-24x24.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        PreferencesWindow.setWindowIcon(icon)
        self.tabWidget = QtGui.QTabWidget(PreferencesWindow)
        self.tabWidget.setGeometry(QtCore.QRect(10, 10, 500, 245))
        self.tabWidget.setObjectName("tabWidget")
        self.t_preferences = QtGui.QWidget()
        self.t_preferences.setObjectName("t_preferences")
        self.button_folder = QtGui.QToolButton(self.t_preferences)
        self.button_folder.setGeometry(QtCore.QRect(440, 10, 45, 29))
        self.button_folder.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.button_folder.setObjectName("button_folder")
        self.label_folder = QtGui.QLabel(self.t_preferences)
        self.label_folder.setGeometry(QtCore.QRect(10, 10, 191, 30))
        self.label_folder.setObjectName("label_folder")
        self.s_folder = QtGui.QLineEdit(self.t_preferences)
        self.s_folder.setGeometry(QtCore.QRect(230, 10, 201, 29))
        self.s_folder.setFocusPolicy(QtCore.Qt.NoFocus)
        self.s_folder.setReadOnly(True)
        self.s_folder.setObjectName("s_folder")
        self.s_startMinimal = QtGui.QCheckBox(self.t_preferences)
        self.s_startMinimal.setGeometry(QtCore.QRect(10, 90, 475, 23))
        self.s_startMinimal.setChecked(True)
        self.s_startMinimal.setObjectName("s_startMinimal")
        self.s_effectExpand = QtGui.QCheckBox(self.t_preferences)
        self.s_effectExpand.setGeometry(QtCore.QRect(30, 120, 455, 23))
        self.s_effectExpand.setChecked(True)
        self.s_effectExpand.setObjectName("s_effectExpand")
        self.s_spaces = QtGui.QCheckBox(self.t_preferences)
        self.s_spaces.setGeometry(QtCore.QRect(10, 150, 475, 23))
        self.s_spaces.setChecked(True)
        self.s_spaces.setObjectName("s_spaces")
        self.label_script = QtGui.QLabel(self.t_preferences)
        self.label_script.setGeometry(QtCore.QRect(10, 40, 211, 30))
        self.label_script.setObjectName("label_script")
        self.s_script = QtGui.QLineEdit(self.t_preferences)
        self.s_script.setGeometry(QtCore.QRect(230, 40, 201, 29))
        self.s_script.setFocusPolicy(QtCore.Qt.NoFocus)
        self.s_script.setReadOnly(True)
        self.s_script.setObjectName("s_script")
        self.button_script = QtGui.QToolButton(self.t_preferences)
        self.button_script.setGeometry(QtCore.QRect(440, 40, 45, 29))
        self.button_script.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.button_script.setObjectName("button_script")
        self.tabWidget.addTab(self.t_preferences, "")
        self.t_notifications = QtGui.QWidget()
        self.t_notifications.setObjectName("t_notifications")
        self.g_sound = QtGui.QGroupBox(self.t_notifications)
        self.g_sound.setGeometry(QtCore.QRect(10, 10, 475, 70))
        self.g_sound.setObjectName("g_sound")
        self.s_beep = QtGui.QCheckBox(self.g_sound)
        self.s_beep.setGeometry(QtCore.QRect(10, 20, 455, 23))
        self.s_beep.setChecked(True)
        self.s_beep.setObjectName("s_beep")
        self.g_notify = QtGui.QGroupBox(self.t_notifications)
        self.g_notify.setGeometry(QtCore.QRect(10, 90, 475, 111))
        self.g_notify.setObjectName("g_notify")
        self.stackNotify = QtGui.QStackedWidget(self.g_notify)
        self.stackNotify.setGeometry(QtCore.QRect(10, 30, 460, 81))
        self.stackNotify.setObjectName("stackNotify")
        self.p_notify = QtGui.QWidget()
        self.p_notify.setObjectName("p_notify")
        self.s_notifyDone = QtGui.QCheckBox(self.p_notify)
        self.s_notifyDone.setGeometry(QtCore.QRect(0, 25, 455, 23))
        self.s_notifyDone.setChecked(True)
        self.s_notifyDone.setObjectName("s_notifyDone")
        self.label_3 = QtGui.QLabel(self.p_notify)
        self.label_3.setGeometry(QtCore.QRect(2, 0, 455, 23))
        self.label_3.setObjectName("label_3")
        self.s_notifyError = QtGui.QCheckBox(self.p_notify)
        self.s_notifyError.setGeometry(QtCore.QRect(0, 55, 455, 23))
        self.s_notifyError.setChecked(True)
        self.s_notifyError.setObjectName("s_notifyError")
        self.stackNotify.addWidget(self.p_notify)
        self.p_notavailable = QtGui.QWidget()
        self.p_notavailable.setObjectName("p_notavailable")
        self.label_4 = QtGui.QLabel(self.p_notavailable)
        self.label_4.setGeometry(QtCore.QRect(2, 0, 455, 80))
        self.label_4.setAlignment(QtCore.Qt.AlignJustify|QtCore.Qt.AlignTop)
        self.label_4.setWordWrap(True)
        self.label_4.setTextInteractionFlags(QtCore.Qt.TextSelectableByMouse)
        self.label_4.setObjectName("label_4")
        self.stackNotify.addWidget(self.p_notavailable)
        self.tabWidget.addTab(self.t_notifications, "")
        self.buttonBox = QtGui.QDialogButtonBox(PreferencesWindow)
        self.buttonBox.setGeometry(QtCore.QRect(170, 265, 341, 32))
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.buttonApply = QtGui.QPushButton(PreferencesWindow)
        self.buttonApply.setGeometry(QtCore.QRect(10, 265, 100, 32))
        self.buttonApply.setObjectName("buttonApply")

        self.retranslateUi(PreferencesWindow)
        self.tabWidget.setCurrentIndex(1)
        self.stackNotify.setCurrentIndex(0)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("accepted()"), PreferencesWindow.accept)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("rejected()"), PreferencesWindow.reject)
        QtCore.QObject.connect(self.s_startMinimal, QtCore.SIGNAL("toggled(bool)"), self.s_effectExpand.setEnabled)
        QtCore.QMetaObject.connectSlotsByName(PreferencesWindow)
        PreferencesWindow.setTabOrder(self.tabWidget, self.s_startMinimal)
        PreferencesWindow.setTabOrder(self.s_startMinimal, self.s_effectExpand)
        PreferencesWindow.setTabOrder(self.s_effectExpand, self.button_folder)
        PreferencesWindow.setTabOrder(self.button_folder, self.buttonBox)

    def retranslateUi(self, PreferencesWindow):
        PreferencesWindow.setWindowTitle(QtGui.QApplication.translate("PreferencesWindow", "Configure Tubemaster", None, QtGui.QApplication.UnicodeUTF8))
        self.button_folder.setText(QtGui.QApplication.translate("PreferencesWindow", "...", None, QtGui.QApplication.UnicodeUTF8))
        self.label_folder.setText(QtGui.QApplication.translate("PreferencesWindow", "Default folder for the videos:", None, QtGui.QApplication.UnicodeUTF8))
        self.s_startMinimal.setToolTip(QtGui.QApplication.translate("PreferencesWindow", "Hide the progressbar, when Tubemaster started", None, QtGui.QApplication.UnicodeUTF8))
        self.s_startMinimal.setText(QtGui.QApplication.translate("PreferencesWindow", "Start the application in reduced mode.", None, QtGui.QApplication.UnicodeUTF8))
        self.s_effectExpand.setToolTip(QtGui.QApplication.translate("PreferencesWindow", "When a download started, show the progressbar under the main window", None, QtGui.QApplication.UnicodeUTF8))
        self.s_effectExpand.setText(QtGui.QApplication.translate("PreferencesWindow", "Expand the window slowly (disable this if you have a slow computer).", None, QtGui.QApplication.UnicodeUTF8))
        self.s_spaces.setToolTip(QtGui.QApplication.translate("PreferencesWindow", "Hide the progressbar, when Tubemaster started", None, QtGui.QApplication.UnicodeUTF8))
        self.s_spaces.setText(QtGui.QApplication.translate("PreferencesWindow", "Replace white spaces in the file name with underlines", None, QtGui.QApplication.UnicodeUTF8))
        self.label_script.setText(QtGui.QApplication.translate("PreferencesWindow", "Location of youtube-dl script:", None, QtGui.QApplication.UnicodeUTF8))
        self.button_script.setText(QtGui.QApplication.translate("PreferencesWindow", "...", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.t_preferences), QtGui.QApplication.translate("PreferencesWindow", "General", None, QtGui.QApplication.UnicodeUTF8))
        self.g_sound.setTitle(QtGui.QApplication.translate("PreferencesWindow", "Sound", None, QtGui.QApplication.UnicodeUTF8))
        self.s_beep.setText(QtGui.QApplication.translate("PreferencesWindow", "Beep if there is an error downloading the video.", None, QtGui.QApplication.UnicodeUTF8))
        self.g_notify.setTitle(QtGui.QApplication.translate("PreferencesWindow", "Notification Messages", None, QtGui.QApplication.UnicodeUTF8))
        self.s_notifyDone.setText(QtGui.QApplication.translate("PreferencesWindow", "The download ends successfully.", None, QtGui.QApplication.UnicodeUTF8))
        self.label_3.setText(QtGui.QApplication.translate("PreferencesWindow", "Show a notification message when:", None, QtGui.QApplication.UnicodeUTF8))
        self.s_notifyError.setText(QtGui.QApplication.translate("PreferencesWindow", "The download fails.", None, QtGui.QApplication.UnicodeUTF8))
        self.label_4.setText(QtGui.QApplication.translate("PreferencesWindow", "Tubemaster provides the possibility to display notification messages when some events take place (for example, when a download finishes), but in order for this feature to be available it needs the \'pynotify\' library. If you install it, come back here and you will be able to activate them.", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.t_notifications), QtGui.QApplication.translate("PreferencesWindow", "Notifications", None, QtGui.QApplication.UnicodeUTF8))
        self.buttonApply.setText(QtGui.QApplication.translate("PreferencesWindow", "Apply", None, QtGui.QApplication.UnicodeUTF8))

